package cn.itcast;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication
@MapperScan("cn.itcast.mapper")        //mapper接口扫描 ————>修改为通用mapper扫描 自动生成sql
//@ComponentScan("cn.itcast")   扫描入口
//SpringBoot程序入口注解
public class BootDemoApplication {
    public static void main(String[] args) {

//        SpringBoot程序入口
//        args为参数
        SpringApplication.run(BootDemoApplication.class,args);
    }
}
